package com.example.cwj11_13;

import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import java.io.InputStream;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
    public boolean isExistSdCard(){

        String state= Environment.getExternalStorageState();
        System.out.println(state);
        if (state.equals(Environment.DIRECTORY_ALARMS)){
            return true;
        }else {
            return false;
        }
    }
public String getSdpath(){
        String path= Environment.getDownloadCacheDirectory().getAbsolutePath();
    return path;
}
    public void readAssets(){
    try {
        InputStream inputStream =
    }
    }
}
